Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Re: XPages - how to get full name of an element in client javascript?

getClientID is what you want. Use getClientID("somename") to get the full path and pass into your server-side script. See this post from John Mackey.

http://mattwhite.me/11tmr.nsf/D6Plinks/MWHE-7K9BC3

Alternatively, you can get the releative path for all controls (computed fields, edit boxes etc) on a given custom control by adding a computed field control to your custom control called elementPath with this code:

return @LeftBack(getClientId("elementPath"), "elementPath")

This will return the relative path to the current custom control, so you can add this to any id in your server-side javascript to get the value.

Regards
Paul


Feedback response number WEBB7UKCKE created by ~Maria Xanjumiberg on 08/03/2009

XPages - how to get full name of an... (~Bella Zenfooma... 3.Aug.09)
. . Re: XPages - how to get full name o... (~Maria Xanjumib... 3.Aug.09)
. . . . No, that doesn't help. I need the a... (~Bella Zenfooma... 4.Aug.09)
. . . . . . getClientId with @LeftBack (~Maria Xanjumib... 4.Aug.09)
. . . . . . . . That'll do. Thanks. (~Bella Zenfooma... 5.Aug.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS